from fastapi import Request, APIRouter

app06 = APIRouter()


@app06.post("/items")
async def item(request: Request):
    return {
        "请求URL": request.url,
        "请求IP": request.client.host,
        "请求宿主": request.headers.get("user-agent"),
        "cookies": request.cookies
    }
